﻿/**
 * NumberObj
 * 
 * @author		Allen Chou
 * @version		1.0.0 (last update: Jan 26 2009)
 * @link        http://cjcat.blogspot.com
 * @link		http://cjcat2266.deviantart.com
 */

package idv.cjcat.utils {
	
	/**
	 * Theh purpose of the <code>NumberObj</code> class is to allow a number be passed by reference.
	 */
	public class NumberObj implements IPrimitiveObj {
		
		private var _value:Number;
		
		public function NumberObj(value:Number = 0) {
			this._value = value;
		}
		
		public function get value():* { return _value; }	
		public function set value(value:*):void {
			this._value = value;
		}
		
		public function valueOf():* { return _value; }
		public function toString():String { return _value.toString(); }
	}
}